import { defineStore } from "pinia";
const globalStore = defineStore("global", {
  state: () => ({
    activeIndex: 0, // 审核步骤记录，1扫描文件，2.OCR，3.患者匹配，4.审核完成
    currentId: "", // 当前激活的匹配id
    firstCheckState: true, // 是否是初次认定
    loading: false, // 前三步完成才可点击
    leftList: <any>[
      // 左边导航栏
    ],
  }),
  actions: {
    getLeftBarData() {
      this.leftList = [
        // 左边导航栏
        {
          name: "王五",
          state: 1,
          stateName: "审方中",
          id: 1,
        },
        {
          name: "张三",
          state: 2,
          stateName: "审方完成",
          id: 2,
        },
      ];
    },
  },
  persist: true, // 开启数据持久化
});
export default globalStore;
